<template>
    <el-main>
        <el-main class="ep-body">
<epl-top-bar :datas="{formData:form,panel:panel}" showPerson personType="PERSON_ALL_EXACT" psTagType="PERSON_INJURY_QUERY">
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
            <epl-userMessage dataType="person" isCodeType idCount="10" :panel="panel">
				<epl-userMessageItem title="当前待遇" :sum="form.total_money.value" :panel="panel">
                        <epl-column label="扣发总月数" :value="form.total_month.value"></epl-column>
                        <epl-column label="扣发总金额" :value="'  ￥'+form.total_money.value"></epl-column>
                    </epl-userMessageItem>
            </epl-userMessage>
			<el-form :model="form" ref="form" :rules="rules">
		<el-collapse v-model="activeNames" >
            <el-collapse-item title="工伤认定信息" name="1" openStatus="true">
                <el-card class="ep-card">
						<ep-input colspan="8" label="单位管理码"  name="aab999" :property="form.aab999" placeholder=""
									p="H"  ></ep-input>
						<ep-input colspan="8" label="总月数"  name="total_month" :property="form.total_month" placeholder=""
									p="H"  ></ep-input>
						<ep-input colspan="8" label="总金额"  name="total_money" :property="form.total_money" placeholder=""
									p="H"  ></ep-input>
                        <el-row :gutter="10">
						<epl-search-input colspan="8" label="工伤认定书编号" name="alc011" rules="this.$localRules.isAlc011" :property="form.alc011" placeholder="请输入工伤认定书编号"
                                  p="R" :datas="{formData:form,panel:panel}" type="person" tagType="INJURY_ALL_EXACT" api="/business/d102iniii/d01injurycommon/InjuryQueryComm/doInjuryQueryComm02">
                            <epl-search-input-item header="姓名"  name="aac003"></epl-search-input-item>
                            <epl-search-input-item header="单位名称" name="aab004"></epl-search-input-item>
							<epl-search-input-item header="工伤认定书编号" name="alc011"></epl-search-input-item>
                        </epl-search-input>
                        <ep-input colspan="8" label="统一社会信用代码"  name="bab010" :property="form.bab010" placeholder=""
								p="D"  ></ep-input>
                        <ep-input colspan="8" label="单位名称" name="aab069" :property="form.aab069" placeholder=""
                                p="D" ></ep-input></el-row>
						<el-row :gutter="10">
							<ep-date colspan="8" label="工伤发生时间" name="alc020"   :property="form.alc020" placeholder=""
                                  p="D" :datas="{formData:form,panel:panel}" type="date" format="yyyy-MM-dd"  ></ep-date>
							<ep-date colspan="8" label="工伤认定日期"  name="alc031"   :property="form.alc031" placeholder=""
                                  p="D" type="date" format="yyyy-MM-dd" :datas="{formData:form,panel:panel}" ></ep-date>
							<ep-select colspan="8" label="工伤认定结论" name="ala015" :property="form.ala015" placeholder=""
									p="D"  codetype="ALA015"  ></ep-select></el-row>       		  
						<el-row :gutter="10">
							<ep-select colspan="8" label="工伤类别" name="alc027" :property="form.alc027" placeholder=""
									p="D"  codetype="ALC027" ></ep-select>
							<ep-select colspan="8" label="伤害程度" name="alc021" :property="form.alc021" placeholder=""
									p="D"  codetype="ALC021" ></ep-select></el-row>
						<el-row :gutter="10">
							<ep-select colspan="8" label="伤害部位1" name="alc042" :property="form.alc042" placeholder=""
									p="D"  codetype="ALC042" ></ep-select>
							<ep-select colspan="8" label="伤害部位2" name="alc043" :property="form.alc043" placeholder=""
									p="D"  codetype="ALC043" ></ep-select>
							<ep-select colspan="8" label="伤害部位3" name="alc044" :property="form.alc044" placeholder=""
									p="D"  codetype="ALC044" ></ep-select></el-row>   
						<el-row :gutter="10">
							<ep-select colspan="8" label="职业病名称1" name="ala017" :property="form.ala017" placeholder=""
									p="D"  codetype="ALA017"></ep-select>
							<ep-date colspan="8" label="因工死亡日期"  name="alc040" :property="form.alc040" placeholder=""
									p="D"  type="date" format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
							<ep-select colspan="8" label="老工伤标识" name="bae476" :property="form.bae476" placeholder=""
									p="D" codetype="BAE476"></ep-select></el-row>
					</el-card>
            </el-collapse-item>

			<el-collapse-item title="请输入劳动能力鉴定信息" name="2" openStatus="true">
                <el-card class="ep-card">
						<el-row :gutter="10">
							<ep-input colspan="8" label="劳动能力鉴定书编号" name="alc035" rules="this.$localRules.isAlc035" :property="form.alc035" placeholder="请输入劳动能力鉴定书编号"
									p="R" :datas="{formData:form,panel:panel}" isChange></ep-input>
							<ep-date colspan="8" label="劳动能力鉴定日期"  name="alc034" rules="this.$localRules.DateCheck" :property="form.alc034" placeholder="请选择劳动能力鉴定日期" 
									p="R"  type="date" format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
							<ep-select colspan="8" label="鉴定类别" name="ala019" :property="form.ala019" placeholder="请选择鉴定类别"
									p="R" codetype="ALA019" :datas="{formData:form}" isChange></ep-select></el-row>

						<el-row :gutter="10">
							<ep-select colspan="8" label="伤残等级" name="ala040" :property="form.ala040" placeholder="请选择伤残等级"
									p="R" codetype="ALA040"  ></ep-select>
							<ep-select colspan="8" label="生活自理障碍等级" name="alc060" :property="form.alc060" placeholder="请选择生活自理障碍等级"
									p="R" codetype="ALC060"  ></ep-select>
							<ep-select colspan="8" label="辅助器具配置确认结论" name="alc055" :property="form.alc055" placeholder="请选择辅助器具配置确认结论"
									p="R" codetype="ALC055" :datas="{formData:form}" isChange ></ep-select>
						</el-row>

						<el-row :gutter="10">
							<ep-select colspan="8" label="辅助器具配置项目1" name="alc056" :property="form.alc056" :placeholder="form.alc056.placeholder"
									p="D" codetype="ALC056" :datas="{formData:form,panel:panel}"  isChange isCodeType></ep-select>
							<ep-select colspan="8" label="辅助器具配置项目2" name="alc057" :property="form.alc057" :placeholder="form.alc057.placeholder"
									p="D" codetype="ALC057" :datas="{formData:form,panel:panel}"  isChange isCodeType
									SelectFilterData=" aaa102 = ':alc056' "></ep-select>
							<ep-select colspan="8" label="辅助器具配置项目3" name="alc058" :property="form.alc058" :placeholder="form.alc058.placeholder"
									p="D" codetype="ALC058" 
									SelectFilterData=" aaa102 = ':alc057' "></ep-select>
						</el-row>

						<el-row :gutter="10">
							<ep-select colspan="8" label="康复性治疗确认结论" name="alc059" :property="form.alc059" placeholder="请选择康复性治疗确认结论"
									p="R" codetype="ALC059"  ></ep-select>
							<ep-select colspan="8" label="工伤直接导致疾病确认结论" name="alc062" :property="form.alc062" placeholder="请选择工伤直接导致疾病确认结论"
									p="R" codetype="ALC062"  ></ep-select>
							<ep-select colspan="8" label="旧伤复发确认结论" name="alc063" :property="form.alc063" placeholder="请选择旧伤复发确认结论"
									p="R" codetype="ALC063"  ></ep-select>
						</el-row>

						<el-row :gutter="10">
							<ep-select colspan="8" label="停工留薪期确认结论" name="alc067" :property="form.alc067" placeholder="请选择停工留薪期确认结论"
									p="R" codetype="ALC067"  :datas="{formData:form}" isChange></ep-select>
							<ep-number colspan="8" label="停工留薪期天数" name="alc054" :property="form.alc054" placeholder=""
									p="D" ></ep-number>
							<ep-select colspan="8" label="丧失劳动能力鉴定结论" name="alc068" :property="form.alc068" placeholder="请选择丧失劳动能力鉴定结论"
									p="R" codetype="ALC068"  ></ep-select>
						</el-row>
                </el-card>					
			</el-collapse-item>
          </el-collapse>
			
            <el-card class="ep-card" v-show="showtable">
				<ep-title>待遇项目</ep-title>
				<el-tabs  v-model="tableNames" type="card" >
                <el-tab-pane label="定期待遇项目" name="1">
					<ep-table :data="tableData1" :titleFilter="demo1">
                        <ep-table-column sortable name="aaa036" header="待遇类别"></ep-table-column>
						<ep-table-column sortable name="aae041" header="开始年月"></ep-table-column>
						<ep-table-column sortable name="aae042" header="终止年月"></ep-table-column>
						<ep-table-column sortable name="aae019" header="工伤待遇金额"></ep-table-column>
                    </ep-table></el-tab-pane>
    
                <el-tab-pane label="一次性待遇" name="2">
                        <ep-table :data="tableData2" :titleFilter="demo2">
                            <ep-table-column sortable name="aic160" header="结算期"></ep-table-column>
							<ep-table-column sortable name="aaa036" header="待遇类别"></ep-table-column>
							<ep-table-column sortable name="aae019" header="工伤待遇金额"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
				
				<el-tab-pane label="补发扣发" name="3">
					<ep-table :data="tableData3" :titleFilter="demo3">
						<ep-table-column sortable name="" header="补扣标志"></ep-table-column>
						<ep-table-column sortable name="" header="结算期"></ep-table-column>
						<ep-table-column sortable name="aaa036" header="待遇项目"></ep-table-column>
						<ep-table-column sortable name="" header="开始年月"></ep-table-column>
						<ep-table-column sortable name="" header="终止年月"></ep-table-column>
						<ep-table-column sortable name="" header="补发扣发月数"></ep-table-column>
						<ep-table-column sortable name="" header="工伤待遇金额"></ep-table-column>
						
						<ep-table-column sortable name="" header="金额"></ep-table-column>
						<ep-table-column sortable name="" header="核发金额"></ep-table-column>
						<ep-table-column sortable name="aae140" header="险种类型"></ep-table-column>
					</ep-table>
				</el-tab-pane>
                </el-tabs>
            </el-card>
				<el-card>
				<el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save"  @formValidate="formValidate" 
                                    :validate="['form']"   :datas="{formData: form,panel:panel}" name="保存"></ep-saveButton>
                    </el-row>
			</el-card>
  
			
			</el-form>
		</el-main>
    </el-main>
</template>


<script src="../js/AppraisalRegJS.js"></script>
